Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comment to example app about optional shipping methods delegate #821

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

bg-stripe
Copy link
Contributor

r? @bdorfman-stripe

Addresses some confusion in #818. This is currently documented in the header, but not clear in the example app.

Copy link
Contributor

@bdorfman-stripe bdorfman-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool.

Also though: I think we should consider changing the api so it is possible to both implement this and also conditionally not require shipping method? If people want to only sometimes require shipping method it might not be straightforward if it simply switches based on presence of a method since you can't change that at runtime. I'm not sure how real a use that is though.

@bg-stripe
Copy link
Contributor Author

Yeah, updating the API so that calling completion with empty or nil shipping methods doesn't show present the shipping methods VC is probably a good idea – I was confused and actually thought that was the contract until I read the docs.

@bg-stripe bg-stripe merged commit adf2433 into master Nov 6, 2017
@danj-stripe danj-stripe deleted the bg-shipping-methods-docs branch August 3, 2018 20:33
mludowise-stripe pushed a commit that referenced this pull request Mar 13, 2022
…nd color (#800)

* Add PaymentSheetAppearance

* Migrate background color to PaymentSheetAppearance

* Try to fix namespace

* Add TODO

* Refactor primary color

* Fix checkbox stroke color

* Add comment

* Fix tests

* Default checkbox stroke to black

* Update Stripe/PaymentSheetAppearance.swift

Co-authored-by: Yuki <[email protected]>

* Group appearance APIs, remove didSet as well

* Make checkbox black stroke

* Revert change on primaryButtonColor

* Add TOOD comment

* Re-record tests

* Update check circle background to match appearance primary

* 🎨  Text, secondary text, icon, danger, border, componentBackground colors (#821)

* Refactor text color

* primary and secondary text color refactor

* refactor for icon color

* dangerColor, componentBorderColor, componentBackgroundColor

* Audit changes thus far

* Refactor for componentDividerColor

* Refactor corner radius

* Border width refactor

* Set corner radius on link button

* Refactor for shadows

* Revert "Refactor for componentDividerColor"

This reverts commit 028ebfc60934ac58ae4b57251c7f0cb9a86de6da.

* Revert form element changes

* Revert sepa mandate change, update checkbox stroke

* Little bit more clean up

* Fix build issue

* Fill checkbox with componentBackground

* Set border on checkbox

* Set checkbox label color

* Fix shadow corner radius

* Fix build issue

* Update snapshots

* update checkbox snapshot tests

* comment out record

* Don't modify link appearance

* update link snapshot tests

* update snapshots

* PR feedback

* Make link checkbox blue

* update new snapshot tests :/

* Update snapshots from latest

* Fix test

* Record dark mode tests

Co-authored-by: Yuki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants